<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"></meta>
    <title>部门列表</title>
    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"></meta>
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache"></meta>
    <meta HTTP-EQUIV="Expires" CONTENT="0"></meta>
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}" media="all"> </link>
    <link rel="stylesheet" th:href="@{/static/css/font_eolqem241z66flxr.css}" media="all" > </link>
    <link rel="stylesheet" th:href="@{/static/css/news.css}"  media="all" > </link>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input type="text" value="" placeholder="请输入关键字" class="layui-input search_input"></input>
        </div>
        <a class="layui-btn search_btn">查询</a>
    </div>
    <div class="layui-inline">
        <a class="layui-btn layui-btn-normal deptAdd_btn">添加部门</a>
    </div>
    <div class="layui-inline">
        <a class="layui-btn layui-btn-danger batchDel">批量删除</a>
    </div>
    <div class="layui-inline">
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
</blockquote>
<div class="layui-form news_list">
    <form name="Dept" id="Dept">
        <table class="layui-table">
            <colgroup>
                <col width="50"></col>
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></input></th>
                <th>部门id</th>
                <th>部门名称</th>
                <th>部门描述</th>
                <th>部门状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody class="news_content1">
            <tr th:each="dept : ${dept}">
                <td>
                    <input name="checked" type="checkbox" lay-skin="primary" lay-filter="choose" th:value="${dept.deptid}"></input>
                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                        <i class="layui-icon"></i>
                    </div>
                </td>
                <td th:text="${dept.deptid}"> </td>
                <td th:text="${dept.deptname}"> </td>
                <td th:text="${dept.deptdesc}"> </td>
                <td th:text="${dept.deptstatus}"> </td>
                <td>
                    <a class="layui-btn layui-btn-danger layui-btn-mini dept_del"   th:value ="${dept.deptid}" data-id="1"><i class="layui-icon" style="font-size: 30px; color: #write;">&#xe640;</i>删除</a>
                    <a class="layui-btn layui-btn-mini dept_edit" th:value="${dept.deptid}"><i class="iconfont icon-edit"></i>修改</a>
                </td>
            </tr>

            </tbody>
        </table>
    </form>
</div>
<div id="page"></div>
<script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/js/dept.js}"></script>
</body>
</html>